import 'package:flutter/material.dart';
import 'package:labcloud_app/page/index.dart';
import 'package:labcloud_app/page/user/register.dart';
import 'package:labcloud_app/page/product/product_detail.dart';
import 'package:labcloud_app/page/user/user_address_page.dart';
import 'package:labcloud_app/page/user/add_address.dart';
import 'package:labcloud_app/page/user/user_wallet.dart';
import 'package:labcloud_app/page/order/order_main.dart';
import 'package:labcloud_app/page/user/login.dart';
import '../page/order/order_detail.dart';
import '../page/order/order_submit.dart';
import '../page/product/home.dart';
import '../page/search.dart';
// import '../pages/message.dart';
import '../page/user/profile.dart';

/// 应用路由配置
class AppRoutes {
  /// 路由表
  static final Map<String, WidgetBuilder> routes = {
    '/home': (context) => const Home(),
    '/search': (context) => const Search(),
    // '/message': (context) => const Message(),
    '/profile': (context) => const Profile(),
    '/product_detail': (context) => const ProductDetail(),
    '/user_address': (context) => const UserAddressPage(),
    '/add_address': (context) => const AddAddressPage(),
    '/wallet': (context) => const WalletPage(),
    '/main': (context) => const Index(),
    '/order_submit': (context) => const OrderSubmitPage(),
    '/order_main': (context) => const OrderMainPage(),
    '/order_detail': ( context) => const OrderDetailPage(),
    '/login': (context) => const Login(),
    '/register': (context) => const Register(),

  };

  /// 初始路由
  static const String initialRoute = '/main';

  /// 底部导航栏路由列表
  static const List<String> bottomNavRoutes = [
    '/home',
    '/search',
    '/message',
    '/shopping_cart',
    '/profile',
  ];
}